<?php
$form = $this->beginWidget('CActiveForm', array(
    'id'                     => 'my-form',
    'enableAjaxValidation'   => false,
    'enableClientValidation' => false,
    'focus'                  => array($model, 'email'),
    'errorMessageCssClass' => 'error',
    'htmlOptions' => array(
        'class'   => 'form',
    ),
));
?>

<fieldset>
    <ul>
        <li>
            <?php
                $attr = 'email';
                echo $form->labelEx($model, $attr, array(
                    'class' => 'desc'
                ));
            ?>
            <div><?php
                echo $form->textField($model, $attr, array(
                    'class' => 'text full'
                ));
                echo $form->error($model, $attr);
            ?></div>
        </li>
        
        <!-- buttons -->
        <li style="text-align: center;"><?php
            echo CHtml::submitButton($model->isNewRecord ? 'CREATE' : 'SAVE', array(
                'name'  => 'submit',
                'class' => 'ui-state-default ui-corner-all ui-button'
            ));
            echo CHtml::button('RESET', array(
                'id'    => 'btn-reset',
                'class' => 'ui-state-default ui-corner-all ui-button',
                'style' => 'margin:0 10px;',
            ));
            echo CHtml::button('CANCEL', array(
                'class' => 'ui-state-default ui-corner-all ui-button btn-cancel'
            ));
        ?></li>
        <!-- //buttons -->
    </ul>
</fieldset>

<?php $this->endWidget(); ?>